using System;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace StockholmsStad.Runtime.Serialization.DataContract.Enums
{
    /// <summary>
    /// Motsvarar de roller som finns i systemet.
    /// Måste motsvaras av tabellen UserRole i databasen.
    /// </summary>
    [DataContract]
    public enum UserRole
    {
        /// <summary>
        /// SystemAdministratör
        /// </summary>
        [Description("Systemadministratör")]
        [EnumMember] SysAdmin = 1,

        /// <summary>
        /// HandlingOfficer
        /// </summary>
        [Description("Handläggare")]
        [EnumMember] HandlingOfficer = 2,

        /// <summary>
        /// Läsbehörig
        /// </summary>
        [Description("Tittanvändare")]
        [EnumMember] ReadOnly = 3,

        /// <summary>
        /// Kund
        /// </summary>
        [Description("Kund")]
        [EnumMember] Customer = 4,

        /// <summary>
        /// Superuser
        /// </summary>
        [Description("Superanvändare")]
        [EnumMember] SuperUser = 5,
    }
}